<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>题目详情</title>
	<meta name="decorator" content="default"/>
	<%--<script type="text/javascript">--%>
		<%--$(document).ready(function() {--%>
			<%--//$("#name").focus();--%>
			<%--$("#inputForm").validate({--%>
				<%--submitHandler: function(form){--%>
					<%--loading('正在提交，请稍等...');--%>
					<%--form.submit();--%>
				<%--},--%>
				<%--errorContainer: "#messageBox",--%>
				<%--errorPlacement: function(error, element) {--%>
					<%--$("#messageBox").text("输入有误，请先更正。");--%>
					<%--if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){--%>
						<%--error.appendTo(element.parent().parent());--%>
					<%--} else {--%>
						<%--error.insertAfter(element);--%>
					<%--}--%>
				<%--}--%>
			<%--});--%>
		<%--});--%>
	<%--</script>--%>
</head>
<body>
	<ul class="nav nav-tabs">
		<li><a href="${ctx}/resource/resourceQuestion/">考题列表</a></li>
		<li class="active"><a href="${ctx}/resource/resourceQuestion/detail?id=${resourceQuestion.id}">题目详情</a></li>
	</ul><br/>
	<form:form id="inputForm" modelAttribute="resourceQuestion" action="${ctx}/resource/resourceQuestion/save" method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<sys:message content="${message}"/>
		<div class="control-group">
			<label class="control-label">题目名称：</label>
			<div class="controls">
				<form:input path="questionName" htmlEscape="false" maxlength="64" class="input-xlarge required" readonly="true"/>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">题目属性：</label>
			<div class="controls">
				<form:select path="questionAttribute" class="input-xlarge required" disabled="true">
					<form:option value="" label=""/>
					<form:options items="${fns:getDictList('resource_question_attribute')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">标签：</label>
			<div class="controls">
				<form:input path="label" htmlEscape="false" maxlength="64" class="input-xlarge " readonly="true" />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">题目类型：</label>
			<div class="controls">
				<form:select path="questionType" class="input-xlarge required" disabled="true">
					<form:option value="" label=""/>
					<form:options items="${fns:getDictList('resource_question_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">题目难度：</label>
			<div class="controls">
				<form:select path="questionDifficulty" class="input-xlarge required"  disabled="true">
					<form:option value="" label=""/>
					<form:options items="${fns:getDictList('resource_question_difficulty')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
				<span class="help-inline"><font color="red">*</font> </span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">题干：</label>
			<div class="controls">
				<form:textarea path="stem" htmlEscape="false" rows="4" maxlength="255" class="input-xxlarge " readonly="true"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">答案：</label>
			<div class="controls">
				<input type="text" id="questionAnswer" name="questionAnswer" htmlEscape="false" maxlength="64" value="${questionAnswer}" class="input-xlarge required" readonly="true"/>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">关联教学实验环境id：</label>
			<div class="controls">
				<input type="text" id="environmentName" path="environmentName" htmlEscape="false" maxlength="128" class="input-xlarge" readonly value="${resourceQuestion.environmentName}"/>

			</div>
		</div>
		<div class="control-group">
			<label class="control-label">实验文档：</label>
			<div class="controls">
				<form:textarea htmlEscape="false" path="document" rows="4" id="content" maxlength="2000" class="input-xxlarge"/>
				<sys:ckeditor replace="document" uploadPath="/itemDescribe" />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">上传附件：</label>
			<div class="controls">
				<input type="text" id="attachment" path="attachment" htmlEscape="false" maxlength="128" class="input-xlarge" readonly value="${attachmentUrl}"/>
				<%--<form:hidden id="attachment" path="attachment" htmlEscape="false" maxlength="128" class="input-xlarge"/>--%>
				<%--<sys:ckfinder input="attachment" type="files" uploadPath="/resource/resourceQuestion" selectMultiple="true"/>--%>
			</div>
		</div>
		<div class="form-actions">
			<%--<shiro:hasPermission name="resource:resourceQuestion:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;</shiro:hasPermission>--%>
			<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
		</div>
	</form:form>

</body>
</html>